from starlette.endpoints import HTTPEndpoint
from starlette.responses import JSONResponse
from model.ModEquipmentVenderList import EquipmentVenderList,equipmentVenderListSchema
from database import Session, engine
import datetime


def get_vender_info(session,classifyid: str):
    #根据设备类型查询厂家
        vender_info = session.query(EquipmentVenderList).filter(EquipmentVenderList.classifyid == classifyid).all()
        return JSONResponse(equipmentVenderListSchema.dump(vender_info, many=True).data)